package cn.csc.module.search.dal.es.spu;

import cn.csc.module.search.dal.dataobject.spu.SpuDO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;

/**
 * @author liuchuang
 * @version 1.0
 * @modify
 * @since 2025/3/17 16:11
 */
@Repository
public interface SpuRepository extends ElasticsearchRepository<SpuDO, BigInteger> {

    /**
     * 对name模糊查询
     */
    Page<SpuDO> findByNameContaining(String name, Pageable pageable);



}
